<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ws-client</title>
</head>
<body>

</body>

<script>
     let ws = new WebSocket("ws://localhost:8080/myWs1")
     ws.onopen = function (){
         ws.send("hello")
     }
     ws.onmessage = function (message){
         console.log(message.data)
     }
</script>
</html>